/**
 * @Author lzc
 * @Date 2023/4/21 11:46
 */
public class RegExpDemo {
    public static void main(String[] args) {
        String s = "id,tm_name,a,b";
    
//        System.out.println(s.replaceAll(",", " varchar,") + " varchar");
    
        System.out.println(s.replaceAll("[^,]+", "$0 varchar"));
    }
}
